package com.xingshentech.ugv.operate.module.auth;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable {
    private Long id;

    private String username;

    private String password;

    private boolean enabled;

    private String userType;   //0 普通用户 1 客户端 2 车辆

    private Long avatar;

    private String fullName;

    private boolean provisionalAuthority;//是否临时授权

//    private List<ResourcesGrantedAuthority> authorities;

    public void setId(Long id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public void setAvatar(Long avatar) {
        this.avatar = avatar;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public void setProvisionalAuthority(boolean provisionalAuthority) {
        this.provisionalAuthority = provisionalAuthority;
    }

//    public void setAuthorities(List<ResourcesGrantedAuthority> authorities) {
//        this.authorities = authorities;
//    }

    public Long getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public String getUserType() {
        return userType;
    }

    public Long getAvatar() {
        return avatar;
    }

    public String getFullName() {
        return fullName;
    }

    public boolean isProvisionalAuthority() {
        return provisionalAuthority;
    }

//    public List<ResourcesGrantedAuthority> getAuthorities() {
//        return authorities;
//    }
}
